import request from '@/utils/request'

// 查询字典表
export function getDictionaryList  (params) {
  return request({
    url: '/api/v2/public/grouplist',
    method: 'get',
    params
  })
}

// 查询颜色列表
export function getDpiList  () {
  return request({
    url: '/api/v2/public/resolution',
    method: 'get'
  })
}

// 查询颜色列表
export function getHueList  () {
  return request({
    url: '/api/v2/public/colours',
    method: 'get'
  })
}

// 查询分类(树结构)
export function getClassifyTreeList (params) {
  return request({
    url: `/api/v2/public/catlist`,
    method: 'get',
    params
  })
}

// 组名修改
export function modGroupName (params) {
  return request({
    url: `/api/v2/public/atlasedit`,
    method: 'post',
    params
  })
}

// 组名修改
export function groupNameIsRepeat (params) {
  return request({
    url: `/api/v2/public/atlas`,
    method: 'post',
    params
  })
}

// 新增组名
export function addGroupName (params) {
  return request({
    url: `/api/v2/public/atlas`,
    method: 'get',
    params
  })
}